﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Mobile System" />
    <title>系统主页</title>
    <link rel="stylesheet" href="../css/jquery.mobile-1.3.0.css" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.mobile-1.3.0.js"></script>
    <script src="../js/Jquery.Common.js" type="text/javascript"></script>
    <script src="../js/Jquery.Global.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            LoadInfo("2");
        });

        function LoadInfo(varType) {
            strRootPath = "../";
            var strParams = '';
            if (varType == "1") {
                strParams = '{"strTable":"st_other","strWhere":" type=\'公司新闻\'","strOrderBy":"order by fbsj desc"}'
                ");"
            }
            else if (varType == "2") {
                strParams = '{"strTable":"st_other","strWhere":" type=\'行业新闻\'","strOrderBy":"order by fbsj desc"}';
            }
            else if (varType == "3") {
                strParams = '{"strTable":"st_other","strWhere":" type=\'经典案例\'","strOrderBy":"order by fbsj desc"}';
            }

            if (strParams != "") {
                GetServiceData("GetPubInfo", strParams, GetNews, "ulNews");
            }
            $('#ulNews').listview('refresh');
        }

        function ReturnLogin() {
            window.location.href = "Login.html";
        }
    </script>
</head>
<body>
    <div data-role="page" id="foo">
        <div data-role="header" data-position="fixed">
            <a href="javascript:ReturnLogin()" data-role="button" data-icon="home">返回</a>
            <h1 id="mainTitle">
                北京创绩科技有限公司</h1>
        </div>
        <!-- /header -->
        <div data-role="content">
            <ul data-role="listview" style="margin-top: 0;" id="ulNews">
            </ul>
        </div>
        <!-- /content -->
        <div data-role="footer" data-id="fool" data-position="fixed">
            <div data-role="navbar">
                <ul>
                    <li><a href="javascript:LoadInfo('1')" id="aDbsx">公司新闻</a></li>
                    <li><a href="javascript:LoadInfo('2')" id="aTzgg" class="ui-btn-active">行业新闻</a></li>
                    <li><a href="javascript:LoadInfo('3')" id="aFzgn">经典案例</a></li>
                </ul>
            </div>
            <!--/navbar -->
        </div>
        <!-- /footer -->
    </div>
    <!-- /page -->
</body>
</html>
